#
class Dog(object):
    def __init__(self):
        # 私有属性
        self.__name = ""
        print(self)

    def get_name(self):
        return self.__name

    def set_name(self, t, *args, **kwargs):
        print(args.index(0))
        print(kwargs)
        self.__name = t

    pass


#
class Animal(Dog):
    # 静态方法
    @staticmethod
    def abc():
        print("静态方法")

    print(Dog)
    pass


# 多态 双下划线表示私有
dog = Animal()
dog.set_name("张三", 1, k="123456")
print(dog.get_name())
